package com.sunhao.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunhao.common.utils.PageUtils;
import com.sunhao.gulimall.product.entity.CategoryEntity;
import com.sunhao.gulimall.product.vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author sunhao
 * @email 19851621327@163.com
 * @date 2024-08-11 10:01:22
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    public void removeMenuByIds(List<Long> asList);

    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    /**
     * 查询所有一级分类
     * @return
     */
    List<CategoryEntity>  getLvel1Categorys();

    /**
     * 根据一集分类查出二级三级分类并封装
     * @return
     */
    Map<String, List<Catelog2Vo>> getCatalogJson();
}

